package com.zcl.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zcl.dao.Boat;
import com.zcl.mapper.BoatMapper;


@Service
public class BoatService {
	@Autowired
	BoatMapper boatMapper;
	/*
	 * 查询事故
	 */
	public List<Map<String, String>> boatQuery(){
		return boatMapper.boatQuery();
	}
	
	/*
	 * 查询事故详情
	 */
	public Boat boatSuveryInfo(Map<String, String> map) {
		return boatMapper.boatSuveryInfo(map);
	}
	
	/*
	 * 事故全文搜索
	 */
	public List<Map<String, String>> boatGlobalQuery(Map<String, String> map) {
		return boatMapper.boatGlobalQuery(map);
	}
	
	/*
	 * 添加事故信息
	 */
	public void boatAdd(Map<String, String> map) {
		boatMapper.boatAdd(map);
	}
	
	/*
	 * 删除事故信息
	 */
	public void boatDelete(Map<String, String> map) {
		boatMapper.boatDelete(map);
	}

	/*
	 * 事故信息修改
	 */
	public void boatRevise(Map<String, String> map) {
		boatMapper.boatRevise(map);
	}

	/*
	 * 事故高级搜索
	 */
	public List<Map<String, String>> boatAdvancedQuery(Map<String, String> map) {
		return boatMapper.boatAdvancedQuery(map);
	}
}
